package com.laboratory.report.lab02.lab0202;

/**
 * 百里守约
 */
public class HeroBailishouyue extends Hero {

    private String id;

    public HeroBailishouyue(String id, int flood, int attack) {
        super("百里守约", flood, attack);
        this.id = id;
    }

    @Override
    public void skill(Hero hero) {
        StringBuilder sb = new StringBuilder();
        sb.append("小百")
                .append("(").append(id).append(" ").append(name).append(")")
                .append("释放静谧之眼技能");
        System.out.println(sb);
        hero.flood -= 5;
    }
}
